# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class ScrapyTestItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass

# 课程
class CourseItem(scrapy.Item):
    table = 'course'
    title = scrapy.Field()
    title2 = scrapy.Field()
    bg_url = scrapy.Field()
    teacher = scrapy.Field()
    teacher_avatar = scrapy.Field()
    teacher_url = scrapy.Field()
    course_id = scrapy.Field()
    course_url = scrapy.Field()
    content = scrapy.Field()

# 章节
class CourseCataLogItem(scrapy.Item):
    table = 'course_catalog'
    course_id = scrapy.Field()
    chapter_p_id = scrapy.Field()
    chapter_id = scrapy.Field()
    title = scrapy.Field()
    content = scrapy.Field()
    video_id = scrapy.Field()
    video_url = scrapy.Field()
    video_duration = scrapy.Field()